package com.leha.mp.api.form;

import com.leha.mp.core.entity.mybatis.PlCase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.leha.mp.core.Utils.BeanUtil;

@ApiModel
@Data
public class CaseForm {
    @ApiModelProperty
    private Integer uid;
    @ApiModelProperty
    private String name;
    @ApiModelProperty
    private Byte sex;
    @ApiModelProperty
    private Integer age;
    @ApiModelProperty
    private String location;
    @ApiModelProperty
    private String disease;
    @ApiModelProperty
    private Integer doctorId;
    @ApiModelProperty
    private Byte type;

    public PlCase toDateModel() {
        PlCase u = new PlCase();
        BeanUtil.copyNotNullBean(this, u);
        return u;
    }
}
